﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="API.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.ControlPanel.API" %>

<!doctype html>
<html>
<head runat="server">
    <title>API整合接口</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>

    

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
        /*#Tab1
        {
            display:none1;
        } */
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <fieldset>
                <legend>本站设置</legend>
                <table width="100%" id="Tab0" cellpadding="6">
                    <tr>
                        <td class="RowTitle">
                            是否开启多系统整合：
                        </td>
                        <td>
                            <asp:CheckBox ID="cbkEnable" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">
                            本站标识：
                        </td>
                        <td>
                            <asp:TextBox ID="txtMyID" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">
                            密钥：
                        </td>
                        <td>
                            <asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">
                            DLL文件名：</td>
                        <td>
                            <asp:TextBox ID="txtDLLName" runat="server" Width="255px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="RowTitle">
                            类全名：</td>
                        <td>
                            <asp:TextBox ID="txtFullCategoryName" runat="server" Width="255px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <asp:Button ID="btnSave" runat="server" Text="保存" Cssclass="btn btn-default" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
            <br />
            <fieldset>
                <legend>多系统接口设置</legend>
                <table width="100%" id="Tab1" cellpadding="6">
                    <tr>
                        <td>
                            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" Width="100%"
                                OnRowCancelingEdit="GV_List_RowCancelingEdit" OnRowDeleting="GV_List_RowDeleting"
                                OnRowEditing="GV_List_RowEditing" OnRowUpdating="GV_List_RowUpdating" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                                <HeaderStyle CssClass="HeaderStyle" />
                                <Columns>
                                    <asp:BoundField DataField="AppID" HeaderText="标识" ReadOnly="True" >
                                      <HeaderStyle Width="120px" />
                                        <ItemStyle Width="120px" />
                                    </asp:BoundField>
                               
                                    <asp:TemplateField HeaderText="接口URL">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Url") %>' Width="90%"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Url") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:CommandField ShowEditButton="True">
                                        <HeaderStyle Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:CommandField>
                                    <asp:CommandField ShowDeleteButton="True">
                                        <HeaderStyle Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:CommandField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="700" id="Table1" cellpadding="6">
                                <tr>
                                    <td class="RowTitle">
                                        标识：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="RowTitle">
                                        接口URL：
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtURL" runat="server" Width="451px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                            <div style="text-align: center; margin-top: 6px">
                                <asp:Button ID="btnAdd" runat="server" Text="添加" Cssclass="btn btn-default" OnClick="btnAdd_Click" /></div>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
